UnifiedRequester

class UnifiedRequester(val client: <ERROR CLASS> = HttpClient(), val serialFormat: <ERROR CLASS> = standardKtorSerialFormat)

Constructors

Link copied to clipboard
fun UnifiedRequester(client: <ERROR CLASS> = HttpClient(), serialFormat: <ERROR CLASS> = standardKtorSerialFormat)

Functions

Link copied to clipboard
fun <T> createStandardWebsocketFlow(    url: String,     deserializer: <ERROR CLASS><T>,     requestBuilder: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>
fun <T> createStandardWebsocketFlow(    url: String,     checkReconnection: suspend (Throwable?) -> Boolean,     deserializer: <ERROR CLASS><T>,     requestBuilder: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>
Link copied to clipboard
fun <T> encodeUrlQueryValue(serializationStrategy: <ERROR CLASS><T>, value: T): <ERROR CLASS>
Link copied to clipboard
suspend fun <ResultType> uniget(url: String, resultDeserializer: <ERROR CLASS><ResultType>): ResultType
Link copied to clipboard
suspend fun <ResultType> unimultipart(    url: String,     mppFile: MPPFile,     resultDeserializer: <ERROR CLASS><ResultType>,     mimetype: String = "*/*",     additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {},     dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {},     requestBuilder: <ERROR CLASS>.() -> Unit = {}): ResultType
suspend fun <BodyType, ResultType> unimultipart(    url: String,     mppFile: MPPFile,     otherData: Pair<<ERROR CLASS><BodyType>, BodyType>,     resultDeserializer: <ERROR CLASS><ResultType>,     mimetype: String = "*/*",     additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {},     dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {},     requestBuilder: <ERROR CLASS>.() -> Unit = {}): ResultType
suspend fun <ResultType> unimultipart(    url: String,     filename: String,     inputProvider: <ERROR CLASS>,     resultDeserializer: <ERROR CLASS><ResultType>,     mimetype: String = "*/*",     additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {},     dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {},     requestBuilder: <ERROR CLASS>.() -> Unit = {}): ResultType
suspend fun <BodyType, ResultType> unimultipart(    url: String,     filename: String,     inputProvider: <ERROR CLASS>,     otherData: Pair<<ERROR CLASS><BodyType>, BodyType>,     resultDeserializer: <ERROR CLASS><ResultType>,     mimetype: String = "*/*",     additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {},     dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {},     requestBuilder: <ERROR CLASS>.() -> Unit = {}): ResultType
Link copied to clipboard
suspend fun <BodyType, ResultType> unipost(    url: String,     bodyInfo: Pair<<ERROR CLASS><BodyType>, BodyType>,     resultDeserializer: <ERROR CLASS><ResultType>): <ERROR CLASS>

Properties

Link copied to clipboard
val client: <ERROR CLASS>
Link copied to clipboard
val serialFormat: <ERROR CLASS>

Extensions

tempUpload
Link copied to clipboard
suspend fun UnifiedRequester.tempUpload(    fullTempUploadDraftPath: String,     file: MPPFile,     onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
suspend fun UnifiedRequester.tempUpload(    fullTempUploadDraftPath: String,     file: MPPFile,     onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
suspend fun UnifiedRequester.tempUpload(    fullTempUploadDraftPath: String,     file: MPPFile,     onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId